tools/ccache: same behaviour for local and CI builds
authorAndreas Gnau <[email protected]>
Fri, 3 Oct 2025 08:59:42 +0000 (10:59 +0200)
committerChristian Marangi <[email protected]>
Tue, 4 Nov 2025 14:13:50 +0000 (15:13 +0100)
commit6cd22322986235b0b756f7e8646d48129b423f0a
tree2ed39317a8606510936246408eee028e35f14278
parent3971b1586889a608f5e7ee5055ef53c477dc07ee
tools/ccache: same behaviour for local and CI builds

If the environment variable `CI` is set, ccache will enable the CMake
option CCACHE_DEV_MODE by default. This leads to differing behaviour
between local and CI builds which takes quite some time to debug. ðŸ¤¯

Achieve consistent behaviour between local builds and CI builds by
setting CCACHE_DEV_MODE. Set it to OFF, because CCACHE_DEV_MODE amongst
other settings like linker choice, enables -Werror, which will lead to
potential compilation failures when the host compiler is updated. Using
-Werror for host utils is not desirable, because the compiler version
used is not controlled by the OpenWrt build system and host utils should
compile successfully on an as wide range of host OSes as possible.

Reported-by: Roman Azarenko <[email protected]>
Signed-off-by: Andreas Gnau <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20290
(cherry picked from commit 6f32c657db55a2e34f659d81d56aa385aaa7d69d)
Link: https://github.com/openwrt/openwrt/pull/20335
Signed-off-by: Christian Marangi <[email protected]>
tools/ccache/Makefile